﻿using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Services.Import
{
    public class PayrollDetailImportForm
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string ProjectName { get; set; } = string.Empty;
        /// <summary>
        /// 劳务班组
        /// </summary>
        [Display(Name = "劳务班组")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string GroupName { get; set; } = string.Empty;
        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string PersonName { get; set; } = string.Empty;
        /// <summary>
        /// 身份证号
        /// </summary>
        [Display(Name = "身份证号")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string IdCard { get; set; } = string.Empty;
        /// <summary>
        /// 开户行
        /// </summary>
        [Display(Name = "开户行")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string BankName { get; set; } = string.Empty;
        /// <summary>
        /// 银行卡号
        /// </summary>
        [Display(Name = "银行卡号")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string PersonBankNo { get; set; } = string.Empty;
        /// <summary>
        /// 实际考勤天数
        /// </summary>
        [Display(Name = "实际考勤天数")]
        public int AttendanceDays { get; set; }
        /// <summary>
        /// 申请发放金额
        /// </summary>
        [Display(Name = "申请发放金额")]
        [Required(ErrorMessage = "{0}不能为空")]
        public decimal AmountApplied { get; set; }
    }
}
